package com.xiaolin.admin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import com.xiaolin.admin.model.dto.SysUserView;
import com.xiaolin.admin.model.entity.SysUser;

import java.util.List;

/**
 * <p>
 * 用户表 服务类
 * </p>
 *
 * @author xiaolin
 * @since 2024-07-12
 */
public interface SysUserService extends IService<SysUser> {
    List<SysUserView> getUserList(SysUser user);
    PageInfo<SysUserView> getUserPage(Integer page, Integer pageSize, SysUser user);

    void checkUnique(SysUser user);

    void deleteRoleRelation(Integer userId);

    boolean addUser(SysUser user);

    SysUser getUser(Integer id);

    boolean updateUser(SysUser user);

    boolean status(Integer id, String status);

    boolean deleteUser(Integer id);
}
